<table align="center" cellpadding="5" cellspacing="5" style="background-color: aqua">
   <% form_for :user, @user do |f| %>
  <%= error_messages_for :user %>
  <tr><td>Username:</td><td><%= f.text_field :username %></td></tr>
  <tr><td>Password:</td><td> <%= f.password_field :password %></td></tr>
   <tr><td>Confirm Password:</td><td> <%= f.password_field :password_confirmation %></td></tr>
  <tr><td></td><td><%= submit_tag "Register"  %></td></tr>
<% end %>
</table>    



<%= link_to 'Back', :controller => 'user', :action => 'login' %>